#ifndef TIMECODECHECKER_H
#define TIMECODECHECKER_H

#include <QDialog>
#include <QTextBrowser>
#include <QPushButton>

class TimecodeChecker : public QDialog
{
    Q_OBJECT
public:
    explicit TimecodeChecker(QString filepath, int width, int height, QWidget *parent = 0);
    
private:
    FILE * m_fp;
    QString *m_Filename;
    const off64_t BLOCKSIZE;
    const int STRBLOCKSIZE;
    off64_t m_FrameCount;
    QString *m_CurrentTimeStamp;
    QString *m_LastTimeStamp;
    int m_ImageWidth;
    int m_ImageHeight;

    QStringList * misFrameList;
    QTextBrowser * resultBrowser;
    QPushButton * btnSave2File;
    QPushButton * btnClose;
    QPushButton * btnStart;

signals:
    
public slots:
    void readFrame(off64_t iframe);
    void onSave2FileClicked();
    void onStartClicked();
};

#endif // TIMECODECHECKER_H
